﻿<%@ Page Language="C#" MasterPageFile="../main.master" Inherits="VioletDevelopmentLaboratory.Net.Web.Configuration.VWebConfigManagerPage" %>

<script runat="server">
	protected void SessionPageStateDetailsView_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
	{
		ShowAlert_DetailsView_ItemUpdated(e);
	}
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">

	<h2>SessionPageState</h2>

	<div>
		<asp:ObjectDataSource ID="SessionPageStateDetailsViewDataSource" runat="server" 
			SelectMethod="GetSessionPageStateSection" 
			TypeName="VioletDevelopmentLaboratory.Net.Web.Configuration.SessionPageStateSectionManager" 
			UpdateMethod="Modify">
			<UpdateParameters>
				<asp:Parameter Name="historySize" Type="Int32" />
			</UpdateParameters>
		</asp:ObjectDataSource>
		<fieldset>
			<asp:DetailsView ID="SessionPageStateDetailsView" runat="server" 
				AutoGenerateRows="False" CellPadding="5" 
				DataSourceID="SessionPageStateDetailsViewDataSource" DefaultMode="Edit" 
				onitemupdated="SessionPageStateDetailsView_ItemUpdated">
				<Fields>
					<asp:BoundField DataField="HistorySize" HeaderText="HistorySize" 
						SortExpression="HistorySize" />
					<asp:CommandField ButtonType="Button" ShowCancelButton="False" 
						ShowEditButton="True" />
				</Fields>
			</asp:DetailsView>
		</fieldset>
	</div>
</asp:Content>